createECS
Description
createECS
Request Method
POST
Request Path
/customer/ecs/create
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
period | BODY | integer | No | No sample value for this parameter. | period |
cost | BODY | number | No | No sample value for this parameter. | cost |
imageId | BODY | string | Yes | No sample value for this parameter. | ecs image id |
quantity | BODY | integer | Yes | No sample value for this parameter. | quantity |
bandwidth | BODY | integer | No | No sample value for this parameter. | bandwidth |
publicIpAddress | BODY | boolean | Yes | No sample value for this parameter. | public ip address |
vcpu | BODY | string | Yes | No sample value for this parameter. | instance vcpu |
systemDisk | BODY | object | Yes | No sample value for this parameter. | system disk |
billingMethod | BODY | string | Yes | No sample value for this parameter. | billingMethod |
instanceType | BODY | string | Yes | No sample value for this parameter. | instance type |
instanceFamily | BODY | string | Yes | No sample value for this parameter. | instance family name |
osName | BODY | string | Yes | No sample value for this parameter. | image osNameEn |
deploymentSetId | BODY | string | No | No sample value for this parameter. | deployment set id |
platform | BODY | string | Yes | No sample value for this parameter. | image platform |
securityGroupId | BODY | string | Yes | No sample value for this parameter. | security group id |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
vSwitchId | BODY | string | Yes | No sample value for this parameter. | vSwitch id |
serverGuard | BODY | boolean | Yes | No sample value for this parameter. | weather use serverGuard |
vpcId | BODY | string | Yes | No sample value for this parameter. | vpc id |
pricingCycle | BODY | string | No | No sample value for this parameter. | pricing cycle |
dataDisk | BODY | array | No | No sample value for this parameter. | disk list |
imageType | BODY | string | Yes | No sample value for this parameter. | image type |
snapshotPolicyId | BODY | string | Yes | No sample value for this parameter. | snapshot policy id |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"ecsCommonResponseVos":[{"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7","orderId":2.0220727154128E+18}]}` | result |
resultCode | string | 0 | result code |
resultMsg | string | success | result message |
Example
Successful Response example
{
"result":
{
"ecsCommonResponseVos":
[
{
"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7",
"orderId":2.0220727154128E+18
}
]
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}